package ru.urfc.portal.model.documents;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import ru.urfc.portal.model.SpectrObject;

/**
 * AdditionalDevice - Device added to Document 
 */
@XmlRootElement
public class AdditionalDevice extends SpectrObject {
	public String name;
	public String frequencyOrChannelNumber;
	public String antennaName;
	public Integer antennaHeight;
	public Boolean isAntennaTypeBeamFormed;
	public Integer watts;
	public Double eim; // ЭИМ?
	public Double latitude;
	public Double longitude;
	public String address;
	@XmlElementWrapper
	@XmlElement(name = "attenuation")
	public Double[] attenuation0_350;
	
	public AdditionalDevice() {
	}

	public AdditionalDevice(Long id, String name, String frequencyOrChannelNumber,
			String antennaName, Integer antennaHeight,
			Boolean isAntennaTypeBeamFormed, Integer watts, Double eim,
			Double latitude, Double longitude, String address,
			Double[] attenuation0_350) {
		super(id);
		this.name = name;
		this.frequencyOrChannelNumber = frequencyOrChannelNumber;
		this.antennaName = antennaName;
		this.antennaHeight = antennaHeight;
		this.isAntennaTypeBeamFormed = isAntennaTypeBeamFormed;
		this.watts = watts;
		this.eim = eim;
		this.latitude = latitude;
		this.longitude = longitude;
		this.address = address;
		this.attenuation0_350 = attenuation0_350;
	}
	
}
